﻿using System.Linq;

namespace ch08.binary.module
{
    public struct Code
    {
        internal Locals[] Locals;
        internal Instruction[] Expr;

        internal ulong GetLocalCount()
        {
            return Locals.Aggregate(0UL, (current, locals) => current + (locals.N));
        }
    }
}